Improvements to Huginn Development cookbook

Rishabh Jain 11 years ago
parent
commit
fdf18890b5
2 changed files with 11 additions and 10 deletions
  1. 0 10
      deployment/Vagrantfile
  2. 11 0
      deployment/roles/huginn_development.json

+ 0 - 10
deployment/Vagrantfile

@@ -12,16 +12,6 @@ Vagrant.configure("2") do |config|
12 12
       chef.roles_path = "roles"
13 13
       chef.cookbooks_path = ["cookbooks", "site-cookbooks"]
14 14
       chef.add_role("huginn_development")
15
-      chef.json = {
16
-    "mysql"=> {
17
-      "server_root_password" => "",
18
-      "server_repl_password" => "",
19
-      "server_debian_password"=> ""
20
-    },
21
-    "nginx" => {
22
-       'init_style' => "upstart"
23
-    }
24
-    }
25 15
     end
26 16
   end
27 17
 

+ 11 - 0
deployment/roles/huginn_development.json

@@ -8,6 +8,17 @@
8 8
 
9 9
 "description" : "Huginn Development Environment",
10 10
 
11
+"default_attributes" : {
12
+    "mysql" : {
13
+      "server_root_password" : "",
14
+      "server_repl_password" : "",
15
+      "server_debian_password" : ""
16
+    },
17
+    "nginx" : {
18
+       "init_style" : "upstart"
19
+    }
20
+},
21
+
11 22
 "run_list":[
12 23
              "recipe[git]",
13 24
              "recipe[apt]",